/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace DaveSexton.DocProject.Sandcastle.BuildComponents.TypeConverters
{
	internal sealed class SandcastleBuildComponentTypeConverter : TypeConverter
	{
		#region Public Properties
		#endregion

		#region Private / Protected
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="SandcastleBuildComponentTypeConverter" /> class.
		/// </summary>
		public SandcastleBuildComponentTypeConverter()
		{
		}
		#endregion

		#region Methods
		public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
		{
			if (destinationType == typeof(string))
				return string.Empty;
			else
				return base.ConvertTo(context, culture, value, destinationType);
		}
		#endregion
	}
}
